$(function() {
	let id = itcast.getArguments(location.search).id + '';
	console.log(id);
	// 获取文章详情数据
	$.ajax({
		url: 'http://localhost:8080/api/v1/index/article',
		data: { id },
		dataType: 'json',
		success: function(res) {
			console.log(res);
			$('.articleDetail').html(template('articleDetailTemp', res.data));
		}
	});
});
